export async function downloadFirmware(url){
  const start = performance.now();
  const firmware = await fetch(url).then(r => r.arrayBuffer());
  const data = new Uint8Array(firmware);
  const end = performance.now();
  console.info("downloaded time: ", end - start)
  return Array.from(data).map(b => String.fromCharCode(b)).join('');
}
